package com.lipl.base.javase.reflect;

import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

@Data
@ToString
public class User2 implements Serializable{
    private static final long serialVersionUID = 1406108260183417444L;

    private int id;

    private String userId;

    private String userName;

    private String provinceId;

    private String cityId;

    private Date createTime;

    public String getUser(User2 user){
        System.out.println("用户名称为张三");
        return user.getUserId();
    }

    public Integer add(Integer... args){
        System.out.println("user2---------------");
        int sum=0;
        for(int i=0;i<args.length;i++){
            sum+=args[i];
        }
        return sum;
    }

}
